package com.gress.shop.service;

import com.gress.shop.bo.Member;
import com.gress.shop.vo.SwalReturn;

import javax.servlet.http.HttpSession;

public interface IMemberService {

    /**
     * @param member  会员信息
     * @param code    验证码
     * @param session
     * @Date: 22:32 2018/2/17
     * @Description 注册用户
     */
    SwalReturn registerMember(Member member, String code, HttpSession session);



    /**
     * @param email
     * @Date: 16:11 2018/3/3
     * @Description 校验邮箱是否存在
     */
    boolean checkEmail(String email);

    /**
     * @param email
     * @param session
     * @Date: 16:13 2018/3/3
     * @Description 忘记密码发送邮件
     */
    SwalReturn sendForgetEmail(String email, HttpSession session);

    /**
     * @param member 需要更新的对象
     * @param code 邮件code
     * @param session
     * @Date: 19:50 2018/3/3
     * @Description:
     * @return:
     */
    SwalReturn updateMemberPsd(Member member, String code, HttpSession session);

}
